#ifndef TESTPAGE_H
#define TESTPAGE_H

#include <QWidget>
class QTimer;
namespace Ui {
class TestPage;
}

class TestPage : public QWidget
{
    Q_OBJECT

public:
    explicit TestPage(QWidget *parent = nullptr);
    ~TestPage();



private slots:
    void on_btnOpenSerialPort_clicked();

    void on_btnCloseSerialPort_clicked();

    void showRequestMessageSlot(const QString &msg,const int &devicenum);

    void showLoginMessageSlot(const QString &message);

    void autoRequsetAllSlot();

    void on_cbAutoRequest_stateChanged(int arg1);

    void on_btnConnect_clicked();

    void on_btnClose_clicked();

    void on_btnAutoSend_clicked();

    void upLoadSlot();

    void on_btnUpLoadData_clicked();

    void on_btnSaveUserMessage_clicked();

    void on_btnSaveSendTime_clicked();

    void on_btnModeChange_clicked();

    void on_btnSaveReqTime_clicked();

    void requestDataSlot();
    void deviceControlSlot();
   void openStatusSlot(int boardId,int deviceId,int status);

private:
    Ui::TestPage *ui;
    QTimer *requestAllTimer;
    QTimer *upLoadTimer;
    int currentBoardFlag =0;
};

#endif // TESTPAGE_H
